- Provide an overview of PsychoPy2
- What is it?
- How does it work?
- Why you should care
- Gain better understanding of psycholinguistic experiments
10-19-2014
import itertools
def iter_primes():
# an iterator of all numbers between 2 and +infinity
numbers = itertools.count(2)
# generate primes forever
while True:
# get the first number from the iterator
prime = numbers.next()
yield prime
for p in iter_primes():
if p > 1000:
break
print p
# Set working directory
setwd("~/google_drive/14_fall_2014/proseminar/psychopy2_workshop")
# Combine files vertically into large data frame
temp <- list.files(path = "./demos/3_stroop/data", full.names = TRUE, pattern = ".csv")
myfiles <- lapply(temp, read.csv,sep = ",")
df <- do.call("rbind",myfiles)
mod <- glm(resp.corr ~ letterColor, data = df, family = "binomial")
| Estimate | Std. Error | z value | Pr(>|z|) | |
|---|---|---|---|---|
| (Intercept) | 1.83 | 0.29 | 6.34 | 0.00 |
| letterColorgreen | -1.26 | 0.35 | -3.57 | 0.00 |
| letterColorred | 0.64 | 0.47 | 1.36 | 0.17 |